#ifndef REGISTERWINDOW_H
#define REGISTERWINDOW_H

#include "mainwindow.h"
#include <QWidget>
#include "QLineEdit"
#include "bean/loginbean.h"

namespace Ui {
class RegisterWindow;
}

class RegisterWindow : public QWidget
{
    Q_OBJECT


public:

    QLineEdit *leRegisterCode;
    explicit RegisterWindow(QWidget *parent = 0);

    void initData();

    void goMainWindow();

    ~RegisterWindow();
private:
        void netCallBack(LoginBean loginBean);

private slots:
    void on_registerBtn_clicked();

    void checkRegisterCode(QString registerCode);

private:
    MainWindow *mainWindow;
    Ui::RegisterWindow *ui;

};

#endif // REGISTERWINDOW_H
